package chinaums.web.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;





import chinaums.service.impl.InsertInfoServiceImpl;
import chinaums.service.impl.SelectInfoServiceImpl;





/**
 * 将调用接口返回的数据插入到数据库
 * 
 * @author Administrator
 * 
 */

@Controller
@RequestMapping("/getIdsByid")
public class GetIdsByidControllor {

	@Autowired
	private InsertInfoServiceImpl insertInfoService;
	@Autowired
	private SelectInfoServiceImpl selectInfoService;

	
	


	// produces = "text/plain; charset=UTF-8"
	@RequestMapping(value = "/getIds", method = RequestMethod.GET)
	@ResponseBody
	public  String   getIdsByid(String    id){
	    List<Object>  list=new ArrayList<Object>();
		 list=selectInfoService.getListById(id);
		 
		
		return "ok";
		
		}
	}